package org.yzh.rbac.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.yzh.rbac.model.entity.PermisDO;

import java.util.List;

@Mapper
@Repository
public interface PermisMapper {

    List<PermisDO> find(@Param("e") PermisDO entity);

    List<PermisDO> findByRoleId(Integer id);

    PermisDO get(Integer id);

    int insertSelective(PermisDO entity);

    int insert(PermisDO entity);

    int updateSelective(PermisDO entity);

    int update(PermisDO entity);

    int delete(Integer id);
}